package org.extframework.ld.http;

import javax.script.ScriptException;
import javax.servlet.http.HttpServletRequest;

import org.extframework.ld.encryption.JsScriptEngine;
import org.extframework.ld.http.abstr.AbstractEncryptionWebRequest;

/**
 * @author : Dong.Li
 * @created : 2013-1-17
 * @version : 1.0
 * @description :
 */
public class EncryptionWebRequest extends AbstractEncryptionWebRequest {

	public EncryptionWebRequest(HttpServletRequest request) {
		super(request);
	}

	public String getUnEncryptionParameter(String name) throws ScriptException,
			NoSuchMethodException {
		String str = getEncryptionParameter(name);
		return JsScriptEngine.unEngineCode(str);
	}

}
